﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<nelech.Models.DBModel.Puzzle>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    עריכת תגובות לחידת השבוע
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var feedbacks = Model.listFeedback;
       var puzzle = Model.puzzle; %>
    <h2>
        עריכת תגובות לחידת השבוע:
        <%=  puzzle.title%></h2>
    <div>
        <% if (feedbacks.Count() > 0)
           { %>
        <ol>
            <% foreach (var feedback in feedbacks)
               {%>
           <li> <%= feedback.title%>
            <% if (!string.IsNullOrEmpty(feedback.text))
               {%>
            <%= feedback.text%>
            <%} %>
            <%= Html.ActionLink("למחזור", "AdminRecycleFeedback", new { id = feedback.id })%>
            <%}%></li></ol>

   <%}%>
    </div>
    <div>
    
    <%= Html.ActionLink("לסל מיחזור", "AdminRecycleBin", new { id = puzzle.id  })%>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
